import Request from '@/utils/request';
import axios from 'axios';

export class versionApi {
  static findPage(params) {
    return Request.getAndLoadData('/business/admin/version/findPage', params);
  }

  static findList(params) {
    return Request.getAndLoadData('/business/admin/version/findList', params);
  }
  static findDetail(parameter) {
    return axios({
      url: '/business/admin/version/findDetail',
      method: 'get',
      params: parameter
    });
  }

  static add(params) {
    return Request.post('/business/admin/version/add', params);
  }

  static edit(params) {
    return Request.post('/business/admin/version/edit', params);
  }

  static del(params) {
    return Request.post('/business/admin/version/delete', params);
  }
}
